package com.aconcagua.samples.modules.simpleModule.state
{
	import mx.collections.ArrayCollection;
		
	[Bindable]
	public class ModuleApplicationState {	
		public var messages:ArrayCollection = new ArrayCollection();
		public var moduleName:String = "";
		public var messageList:String = "";
		
	    public function init(): void {
	    }
	    
	    public function addMessage(message:String):void {	    	
	    	messages.addItem(message);
	    	messageList += message + "\n";
	    }

	    public function clearMessages():void {
	    	messages.removeAll();
	    	messageList = "";
	    }
	}		
}
